<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String p = "";
	String likeName = "&likeName=";
	if (request.getParameter("likeName")!=null) {
		likeName = likeName + request.getParameter("likeName");
	}
	if (request.getParameter("typeId")!=null) {
		p = "typeId="+request.getParameter("typeId").toString() +likeName;
	}
	if (request.getParameter("groupId")!=null) {
		p = "groupId="+request.getParameter("groupId").toString() + likeName;
	}
	
	String showMsg = request.getParameter("showMsg")==null?"":request.getParameter("showMsg");
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<s:head />
		<s:i18n name="globalMessages"></s:i18n>
		<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>易彩通</title>
<link href="images/css.css"  rel="stylesheet" type="text/css" />
<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src='js/jquery.validate.min.js'></script>
<script type='text/javascript' src='js/jquery-ui-1.7.3.custom.min.js'></script>  
 <link href="style/ui-lightness/jquery-ui-1.7.3.custom.css" rel="stylesheet" type="text/css">
<script type=text/javascript>
function showGroup(sid)
{
	var id = "#type" + sid;
	var s = $(id).css("display");
	if (s == "none") {
		$(id).css("display", "block");
	} else {
		$(id).css("display", "none");
	}
}



function showsubmenu(sid)
{
var whichEl = document.getElementById("submenu" + sid);
imgmenu = "imgmenu" + sid;

if (whichEl.style.display == "none")
{
//eval("submenu" + sid + ".style.display=\"\";");
document.getElementById("submenu" + sid).style.display = "";
//document.getElementById(imgmenu).className="dt";
//imgmenu.style.background="images/sy_let_bg1.jpg";
}
else
{
//eval("submenu" + sid + ".style.display=\"none\";");
document.getElementById("submenu" + sid).style.display = "none";
//document.getElementById(imgmenu).className="dt1"; 
//imgmenu.style.background="images/sy_let_bg1.jpg";
}
}
</script>
<style type="text/css">
#menu { width:70px; height:6px; margin:0 auto; }
#menu ul { list-style: none; margin: 0px; padding: 0px; }
#menu ul li { float:left; margin-left:2px;}
#menu ul li a { display:block; width:60px; height:6px;  text-align:center; font-size:12px;}
#menu ul li a:hover { }
#menu ul li a#current {  font-weight:bold; color:#fff;}
#menu ul li ul { border:1px solid #ccc; display:none; position:absolute;z-index: -160px; }
#menu ul li ul li { float:none; width:160px; line-height:28px; background:#eee; margin:0;}
#menu ul li ul li a { background:none; width:160px;}
#menu ul li ul li a:hover { background:#333; color:#fff;}
#menu ul li:hover ul { display:block;}
#menu ul li.sfhover ul { display:block;}
</style>
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}


-->
</style></head>
<body style="margin:0px; text-align:center;" bgcolor="#F1F1F1" >
<s:action name="showTop" executeResult="true"/>
<table width="100%" height="18" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="18">&nbsp;</td>
  </tr>
</table>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="177" height="100%" valign="top">
    
    <!-- 引用菜单 -->
	<jsp:include page="left_types.jsp"></jsp:include>
    
      </td>
    <td width="19">&nbsp;</td>
    <td width="794" valign="top" height="100%">
 <iframe src="indexAction!loginedIndex.action" width="100%" height="100%" scrolling="no" name="frame_content" id="frame_content"
                onreadystatechange="stateChangeIE(this)"
                onload="stateChangeFirefox(this)"  
                frameborder="0">
 </iframe >


<form id="tmpForm" style="display: none;" target="frame_content">
	<input type="hidden" name="likeName" id="likeName" />
</form>
<script>

function stateChangeIE(_frame)
    {
         if (_frame.readyState=="complete")//state: loading ,interactive,   complete
         {
             AutoHeight();
         }  
    }
    function stateChangeFirefox(_frame)
    {  
        AutoHeight();
    }
    
    function AutoHeight()
    {
        if(document.readyState!='complete')
        {
            setTimeout( function(){AutoHeight();},50 );
            return;
        }
        else
        {
            try
            {   //IE、fireFox下测试通过
                var ifobj=document.getElementById("frame_content");
                ifobj.style.height = ifobj.contentWindow.document.body.scrollHeight + 0 + "px";
            }   //注意，别忘了加最后那个"px",不然fireFox下就不起作用了
                //加的那0是为了让非IE浏览器高度不会一直增加
            catch(e)
            {}
        }
    }
</script>
 
<script type="text/javascript" defer="defer">
var purl = "<%=p%>";
if (purl != "") {
	document.getElementById("frame_content").contentWindow.location.href= "indexAction!findByTypeAndGroup.action?" +  encodeURI(encodeURI(purl));
}
var showMsg = "<%=showMsg%>";
if (showMsg != "") {
	document.getElementById("frame_content").contentWindow.location.href= "sysMsgAction!toEnterSysMsgList.action";
}
//function reinitIframe(){
//var iframe = document.getElementById("frame_content");
//try{
//var bHeight = iframe.contentWindow.document.body.scrollHeight;
//var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
//var height = Math.max(bHeight, dHeight);
//iframe.height =  height;
//}catch (ex){}
//}
//window.setInterval("reinitIframe()", 200);
</script></td>
  </tr>

</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/line4.jpg" width="5" height="14" /></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="32">&nbsp;</td>
  </tr>
</table>

<!-- 中间的用户评价神马的 -->
<s:action name="showComment" executeResult="true" />
 
<!-- 底部，所属公司所有权之类的 -->
<jsp:include page="foot_end.jsp"></jsp:include>
<form action="" id="jumpForm" target="frame_content">
</form>
</body>
</html>
 